<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use app\common\library\Sms as Smslib;
use app\common\library\Token;
use think\captcha\Captcha;
use think\Db;
use think\Request;
use think\Validate;
use app\index\model\Apply;


class System extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function _initialize()
    {
        parent::_initialize();
    }

    // 设置页面
    public function setup(){
        return $this->view->fetch();
    }

    // 文章
    public function model(){
        $id = input('m',14);

        $ret = model('category')->get($id);

        return $this->view->fetch();


    }
}
